package com.github.baichuan.application.scaffold.rest.dto.role;

import com.github.baichuan.mapping.Mapping;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Schema(title = "角色信息")
@Getter
public class RoleGridView {
    @Schema(title = "角色Id")
    @Mapping
    private String id;

    @Schema(title = "角色名")
    @Mapping
    private String name;

    @Schema(title = "所属租户")
    @Mapping("tenant.name")
    private String tenant;

    @Schema(title = "角色代码")
    @Mapping
    private String code;

    @Schema(title = "角色描述")
    @Mapping
    private String intro;
}
